import request from '@/utils/request'

// 查询客户端接入清单列表
export function listAppInfo(query) {
  return request({
    url: '/system/appInfo/list',
    method: 'get',
    params: query
  })
}

// 查询客户端接入清单详细
export function getAppInfo(appCode) {
  return request({
    url: '/system/appInfo/' + appCode,
    method: 'get'
  })
}

// 新增客户端接入清单
export function addAppInfo(data) {
  return request({
    url: '/system/appInfo',
    method: 'post',
    data: data
  })
}

// 修改客户端接入清单
export function updateAppInfo(data) {
  return request({
    url: '/system/appInfo',
    method: 'put',
    data: data
  })
}

// 删除客户端接入清单
export function delAppInfo(appCode) {
  return request({
    url: '/system/appInfo/' + appCode,
    method: 'delete'
  })
}
